package com.Final.hj;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class MySQLiteData extends SQLiteOpenHelper {

    private Context mContent;

    private String INFOS = "create table User("
            +"id integer primary key autoincrement,"
            +"myId varchar(50),"
            +"uname varchar(20),"
            +"paw varchar(20),"
            +"email varchar(20),"
            +"hImgId varchar(100),"
            +"type varchar(10),"
            +"gender varchar(10))";

    public MySQLiteData(Context content){
        super(content, "userInfo.db", null, 1);
        mContent = content;
    }

    @Override
    public void onCreate(SQLiteDatabase db){
        db.execSQL(INFOS);
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion){

    }
}
